helpers
Class UserDevicesResultsHelper
java.lang.Object
helpers.UserDevicesResultsHelper
public class UserDevicesResultsHelper
- extends java.lang.Object
Helper class to a extract data from the UserDevicesResults object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
response
Response response
UserDevicesResultsHelper
public UserDevicesResultsHelper(Response response)
- Initialize with the response to be parsed
- Parameters:
response
-
userExists
public boolean userExists()
- Returns:
- returns true if the queried user exists, false if it does not exist
hasFailure
public boolean hasFailure()
- Returns:
- returns true if the response contains a failure object
hasDevice
public boolean hasDevice()
- Returns:
- returns true if the response contains a DeviceName indicating that the device has a a logged in user.
getDevice
public java.lang.String getDevice()
- Returns:
- returns the devicename of the device the queried user is logged into
getError
public java.lang.String getError()
- Returns:
- returns error information if there is a failure